package team.helpmephone.app.set.sound;

import team.helpmephone.app.R;
import android.app.Activity;
import android.content.ContentResolver;
import android.database.Cursor;
import android.media.MediaPlayer;
import android.media.RingtoneManager;
import android.net.Uri;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import android.widget.TextView;

public class ActivitySetSound extends Activity {

	/** Called when the activity is first created. */
	private TextView textView;
	String[] str;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.set_sound);
		// Spinner spinner = (Spinner) findViewById(R.id.sound_list);
		// textView = (TextView) findViewById(R.id.sound_text);
		// RingtoneManager ringManager = new RingtoneManager(this);
		// // Cursor cur=ringManager.getCursor();
		// // str=cur.getColumnNames();
		// Uri ringUrl =
		// ringManager.getDefaultUri(RingtoneManager.TYPE_RINGTONE);
		// ContentResolver resove= this.getContentResolver();
		// textView.setText(ringUrl.toString());
		// Cursor cur=resove.query(ringUrl, null, null, null, null);
		//	  
		// // textView.setText(cur.getColumnCount());
		// ArrayAdapter adapter = ArrayAdapter.createFromResource(this,
		// R.array.time_items, android.R.layout.simple_spinner_item);
		//	 

		MediaPlayer mp = MediaPlayer.create(this, R.raw.oh);
		mp.start();

	}
}
